Package com.cisco.pt.ipc.sim.impl
Class ServicePolicyManagerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ServicePolicyManagerImpl
- All Implemented Interfaces:
IPCObject,ServicePolicyManager
Information provided by the PKI file:
\class CServicePolicyManager
\brief CServicePolicyManager stores and retrieves service-policy for traffic inspection
\example network().getDevice("Router0").getServicePolicyManager()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionServicePolicyManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteServicePolicy(String policyMapName, String intfName) Information provided by the PKI file:Information provided by the PKI file:getIntfServicePolicy(String intfName) Information provided by the PKI file:getServicePolicy(String policyName, String mode, String intf) Information provided by the PKI file:getServicePolicyAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
ServicePolicyManagerImpl
public ServicePolicyManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
deleteServicePolicy
Information provided by the PKI file:
\brief Delete the service policy that matches policy-map and interface name- Specified by:
deleteServicePolicyin interfaceServicePolicyManager- Parameters:
policyMapName- Takes in a parameter of policyMapNameintfName- Takes in a parameter of intfName
-
getServicePolicy
Information provided by the PKI file:
\brief Returns the service-policy that matches policy-map name, mode("interface"/"global") and interface nameIf- Specified by:
getServicePolicyin interfaceServicePolicyManager- Parameters:
policyName- Takes in a parameter of policyNamemode- Takes in a parameter of modeintf- Takes in a parameter of intf- Returns:
- ServicePolicy Returns a ServicePolicy
-
getGlobalServicePolicy
Information provided by the PKI file:
\brief Returns the global service-policy- Specified by:
getGlobalServicePolicyin interfaceServicePolicyManager- Returns:
- ServicePolicy Returns a ServicePolicy
-
getIntfServicePolicy
Information provided by the PKI file:
\brief Returns the interface service-policy that matches the interface nameIf- Specified by:
getIntfServicePolicyin interfaceServicePolicyManager- Parameters:
intfName- Takes in a parameter of intfName- Returns:
- ServicePolicy Returns a ServicePolicy
-
getServicePolicyAt
Information provided by the PKI file:
\brief Returns the service-policy at a specified index- Specified by:
getServicePolicyAtin interfaceServicePolicyManager- Parameters:
index- Takes in a parameter of index- Returns:
- ServicePolicy Returns a ServicePolicy
-
getServicePolicyCount
public int getServicePolicyCount()Information provided by the PKI file:
\brief Returns the number of service-policy has been configured- Specified by:
getServicePolicyCountin interfaceServicePolicyManager- Returns:
- int Returns a int
-